<script setup>
const { bannerData } = defineProps(['bannerData'])
</script>

<template>
	<div class="home-banner">
		<el-carousel height="500px">
			<el-carousel-item v-for="item in bannerData" :key="item.id">
				<router-link :to="item.hrefUrl">
					<img :src="item.imgUrl" alt="">
				</router-link>
			</el-carousel-item>
		</el-carousel>
	</div>
</template>

<style scoped lang="scss">
.home-banner {
	width: 1240px;
	height: 100%;

	img {
		width: 100%;
		height: 100%;
	}
}
</style>